<literal>
    <style>
        .highchar_div{
            width: 50%;
            height: 300px;
            float: left;
        }
    </style>
</literal>
<div class="highchar_div" id="highcharts"></div>
<script type="text/javascript">
    $(function () {
        var sDate = '';
        var eDate = '';
        var sub = new Array();
        var ac = new Array();
        $.post(
                '__ROOT__/index.php/Index/getStatistics',
                {s_date:sDate,e_date:eDate},
                function(xhr){
                    if(xhr.status){
                        chart.series[0].setData(xhr.info.sub,true);
                        chart.series[1].setData(xhr.info.ac,true);
                        chart.xAxis[0].setCategories(xhr.info.cate_sub);
                        var title = {
                            text:"每天提交/AC数量",
                            style:{
                                color:"#ff0000"
                            }
                        };
                        chart.setTitle(title);

                    }else{
                        alert(xhr.info);
                    }
                });
        var chart = new Highcharts.Chart({                   //图表展示容器，与div的id保持一致
            chart: {
                renderTo:'highcharts',
                type: 'areaspline'       //                  //指定图表的类型，默认是折线图（line）
            },
            title: {
                text: ''      //指定图表标题
            },
            xAxis: {
                labels: {
//                    enabled:false,
                    staggerLines:1,
                    step:15
                },
//                categories: []   //指定x轴分组
            },
            yAxis: {
                title: {
                    text: '题目数量'                  //指定y轴的标题
                }
            },
            series: [{                                 //指定数据列
                name: '提交',                          //数据列名
                data: []                        //数据
            }, {
                name: '正确',
                data: []
            }]
        });

    });
</script>